package FINAL;

import java.util.List;

import b1_xay_dung_tap_du_lieu_mau.User;
import b2.b21_doc_file_luu_vao_list;

public class Read_file_to_matrix {
	/**
	 * 
	 * @return trả về ma trận 2 chiều lưu đồ thị
	 */
	public static int[][] read_file_to_matrix() {
		List<User> list_user = b21_doc_file_luu_vao_list.read_file_to_list();
		int[][] list = new int[7500][7500];
		for (int i = 0; i < list_user.size(); i++) {
			for (int j = 0; j < list_user.get(i).list_id_user_RT.size(); j++) {
				list[i][list_user.get(i).list_id_user_RT.get(j)] = 1;
			}
		}
		return list;
	}
}
